Skip to content

chore: modernize pipeline for tag-based releases#159

Merged
petrsnd merged 1 commit into
OneIdentity:masterfrom
petrsnd:chore/modernize-pipeline
May 16, 2026
Merged

chore: modernize pipeline for tag-based releases#159
petrsnd merged 1 commit into
OneIdentity:masterfrom
petrsnd:chore/modernize-pipeline

Conversation

@petrsnd
Copy link
Copy Markdown
Member

@petrsnd petrsnd commented May 16, 2026

Changes

Triggers:

  • Add main branch trigger (keep master and release-* for transition)
  • Add v* tag trigger for tag-based releases
  • Broaden path exclusions to **/*.md, LICENSE, docs/, CODEOWNERS

Version derivation (build-steps.yml):

  • New first step derives version from tag or branch
  • Tag builds: validates v<major>.<minor>.<patch> format, strips v prefix, sets clean version (e.g. 8.2.0)
  • Dev builds: passes through existing version formula (8.2.0.<BuildId>-SNAPSHOT)
  • Sets ReleaseTag variable for GitHubRelease task

Pipeline variables (global-variables.yml):

  • Add isTagBuild variable
  • Derive isPrerelease from source branch (was hardcoded true)
  • Derive versionSuffix from source branch (tag builds get empty suffix, dev builds get -SNAPSHOT)

GitHubRelease:

  • Tag changed from release-<version> to $(ReleaseTag) -- tag builds use the trigger tag (e.g. v8.2.0), dev builds use dev/v<version>

Other:

  • Add CODEOWNERS requiring SafeguardPasswords team review

No behavioral change for existing branch builds. Tag-based releases are a new capability.

- Add main branch and v* tag triggers (keep master and release-* for transition)
- Add isTagBuild variable, derive isPrerelease and versionSuffix from source branch
- Add version derivation step: validates tag format, strips v prefix, sets ReleaseTag
- Update GitHubRelease to use ReleaseTag variable instead of release-version prefix
- Broaden path exclusions to **/*.md, LICENSE, docs/, CODEOWNERS
- Add CODEOWNERS requiring SafeguardPasswords team review
- Tag builds produce clean versions (e.g. 8.2.0) without BuildId or SNAPSHOT suffix

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@petrsnd petrsnd merged commit e75c3d1 into OneIdentity:master May 16, 2026
1 check passed
@petrsnd petrsnd deleted the chore/modernize-pipeline branch May 16, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant